package org.dromara.school.domain.bo;

import org.dromara.school.domain.StudentParent;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 学生家长信息业务对象 school_student_parent
 *
 * @author Gjb
 * @date 2025-06-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = StudentParent.class, reverseConvertGenerate = false)
public class StudentParentBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 学生id
     */
    @NotNull(message = "学生id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long studentId;

    /**
     * 家长姓名
     */
    @NotBlank(message = "家长姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String parentName;

    /**
     * 关系
     */
    @NotBlank(message = "关系不能为空", groups = { AddGroup.class, EditGroup.class })
    private String relationShip;

    /**
     * 职业
     */
    @NotBlank(message = "职业不能为空", groups = { AddGroup.class, EditGroup.class })
    private String position;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String telphone;

    /**
     * 所属校区
     */
    @NotNull(message = "所属校区不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long schoolCampusId;

    /**
     * 删除
     */
    @NotNull(message = "删除不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deleted;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
